<template>
    <div style="width: 100%;height: 100%;text-align: center;">
        <button @click="xy">
            aaa 
        </button>
    </div>
</template>

<script>
import { sessmsg } from '../utils/request'

export default {
    data() {
        return {

        }
    },
    methods: {
        xy() {
            sessmsg('aaa')
        },
        getUser() {
            // 判断本地是否存在用户token，没有则返回登录页，否则在页面加载时根据token获取用户信息，跳转到首页
            // if (localStorage.getItem('user_id') == undefined) {
            //     this.$router.push('/')
            // } 
        },
    },
    mounted() {
        this.getUser()
    },
    components: {
    }
}
</script>

<style scoped>

</style>